<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<c:set var="contextRootPath" value="${pageContext.request.contextPath}" />
<c:if test="${pageContext.request.contextPath == '/'}">
	<c:set var="contextRootPath" value="" />
</c:if>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>GateWay按日期的手机号码统计数据</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="${contextRootPath}/resource/easyui-themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="${contextRootPath}/resource/easyui-themes/icon.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript">
	// 是否需要重新刷新页面
	var g_needReloadPage = false;
</script>
<script type="text/javascript" src="${contextRootPath}/resource/js/jquery.easyui-1.4.min.js">
	
</script>
</head>
<body>
	<div>
		<span class="page_titile">GateWay按日期的手机号码统计数据</span>
	</div>

	<form method="get" action="list.do">
		<table class="input_table" align="center" cellspacing="0" cellpadding="0">
			<tr>
				<td class="input_titile_td">日期</td>
				<td class="input_content_td"><input class="easyui-datebox" type="text" name="dataDate" value="<c:out value='${dataDate}' />" /></td>
				<td class="input_titile_td">系统类型(0:所有系统;1:android;2:ios)</td>
				<td class="input_content_td"><input type="text" size="40" name="osType" value="<c:out value='${osType}' />" /></td>
			</tr>
			<tr>
				<td class="input_titile_td">接口(方法名, all:所有接口)</td>
				<td class="input_content_td"><input type="text" size="40" name="api" value="<c:out value='${api}' />" /></td>
				<td class="input_titile_td">app版本</td>
				<td class="input_content_td"><input type="text" name="appVersion" value="<c:out value='${appVersion}' />" /></td>
			</tr>
			<tr>
				<td class="input_content_td" align="center"><input type="submit" value=" 搜索 " /></td>
			</tr>
		</table>
	</form>

	<form:form method="get" action="list.do" name="frmTurnPage1">
		<input type="hidden" name="dataDate" value="<c:out value='${dataDate}' />" />
		<input type="hidden" name="osType" value="<c:out value='${osType}' />" />
		<input type="hidden" name="api" value="<c:out value='${api}' />" />
		<input type="hidden" name="appVersion" value="<c:out value='${appVersion}' />" />
		<!-- 隐含变量 -->
		<jsp:include page="/WEB-INF/jsp/common/turnPage.jsp">
			<jsp:param name="formName" value="frmTurnPage1" />
		</jsp:include>
	</form:form>

	<table class="records_table" align="center" cellspacing="0" cellpadding="0">
		<tr class="records_table_head">
			<td>日期</td>
			<td>系统类型<br />0:所有系统<br />1:android<br />2:ios</td>
			<td>app版本</td>
			<td>接口<br />方法名<br />all:所有接口</td>
			<td>手机号码数量</td>
			<td>创建时间</td>
		</tr>
		<c:forEach items="${pageData.resultList}" var="record">
			<tr class="records_table_record">
				<td><fmt:formatDate value="${record.dataDate}" pattern="yyyy-MM-dd" /></td>
				<td><c:out value="${record.osType}" /></td>
				<td><c:out value="${record.appVersion}" /></td>
				<td><c:out value="${record.api}" /></td>
				<td><c:out value="${record.phoneCount}" /></td>
				<td><fmt:formatDate value="${record.createTime}" pattern="yyyy-MM-dd HH:mm:ss" /></td>
			</tr>
		</c:forEach>
	</table>

	<form:form method="get" action="list.do" name="frmTurnPage2">
		<input type="hidden" name="dataDate" value="<c:out value='${dataDate}' />" />
		<input type="hidden" name="osType" value="<c:out value='${osType}' />" />
		<input type="hidden" name="api" value="<c:out value='${api}' />" />
		<input type="hidden" name="appVersion" value="<c:out value='${appVersion}' />" />
		<!-- 隐含变量 -->
		<jsp:include page="/WEB-INF/jsp/common/turnPage.jsp">
			<jsp:param name="formName" value="frmTurnPage2" />
		</jsp:include>
	</form:form>

	<div id='popupDiv' style="position: absolute; z-index: 9999; width: 300px; height: 250; display: none;" class="popup_style">
		<div class="close" onclick="javascript: $('#popupDiv').hide(); if (g_needReloadPage) location.reload();"></div>
		<div class="title">
			<h2 id="popupTitle"></h2>
		</div>
		<div class="content">
			<iframe id="popupIframe" src="" frameborder="0" scrolling="auto" width="100%" height="100%"></iframe>
		</div>
	</div>

</body>
</html>
